#include<bits/stdc++.h>
using namespace std;
const int maxn=100005;
int a[maxn];//camera
int main(){
    freopen("detect.in","r",stdin);
    freopen("detect.out","w",stdout);
    int t;
    cin>>t;
    while(t--){
        int n,m,l,limv;
        cin>>n>>m>>l>>limv;
        for(int i=1;i<=n;i++){
            int d,v,a;
            cin>>d>>v>>a;
        }
        for(int i=1;i<=m;i++){
            cin>>a[i];
        }
    }
    cout<<0;
    return 0;
}
